package com.yoomiito.app.model.my;

import android.os.Parcel;
import android.os.Parcelable;

public class PayeeInfo implements Parcelable {
    private String id;
    private String nickname;
    private String headimgurl;
    private String mobile;
    private String money;//转账金额
    private int company_id;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public int getCompany_id() {
        return company_id;
    }

    public void setCompany_id(int company_id) {
        this.company_id = company_id;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.nickname);
        dest.writeString(this.headimgurl);
        dest.writeString(this.mobile);
        dest.writeString(this.money);
        dest.writeInt(this.company_id);
    }

    public PayeeInfo() {
    }

    protected PayeeInfo(Parcel in) {
        this.id = in.readString();
        this.nickname = in.readString();
        this.headimgurl = in.readString();
        this.mobile = in.readString();
        this.money = in.readString();
        this.company_id = in.readInt();
    }

    public static final Creator<PayeeInfo> CREATOR = new Creator<PayeeInfo>() {
        @Override
        public PayeeInfo createFromParcel(Parcel source) {
            return new PayeeInfo(source);
        }

        @Override
        public PayeeInfo[] newArray(int size) {
            return new PayeeInfo[size];
        }
    };

    @Override
    public String toString() {
        return "PayeeInfo{" +
                "id='" + id + '\'' +
                ", nickname='" + nickname + '\'' +
                ", headimgurl='" + headimgurl + '\'' +
                ", mobile='" + mobile + '\'' +
                ", money='" + money + '\'' +
                ", company_id=" + company_id +
                '}';
    }
}
